package com.mapper;

import com.domain.Announcement;
import com.github.pagehelper.Page;

public interface AnnouncementMapper {

    //显示公告
    Page<Announcement> searchAnnouncement();

    //显示公告详细，用于后面的编辑操作
    Announcement findById(String id);

    //增加公告
    Integer addAnnouncement(Announcement announcement);

    //删除公告
    boolean delAnnouncement(String id);

    //编辑公告
    boolean editAnnouncement(Announcement announcement);
}
